﻿using GYCTOAManagementSystemNewApi.Model.Enum.PayrollForm;
using GYCTOAManagementSystemNewApi.Model.Tool;
using System;

namespace GYCTOAManagementSystemNewApi.Model.Entity
{
    /// <summary>
    /// 收方工资单
    /// </summary>
    public class PayrollForm : Operate
    {
        /// <summary>
        /// 收方工资单号
        /// </summary>
        public string PayrollNumber { get; set; }
        /// <summary>
        /// 项目Id
        /// </summary>
        public int ProjectId { set; get; }
        /// <summary>
        /// 施工类别
        /// </summary>
        public ConstructionTypeEnum ConstructionType { set; get; }
        /// <summary>
        /// 施工部位
        /// </summary>
        public string ConstructionPart { set; get; }
        /// <summary>
        /// 工作内容
        /// </summary>
        public string JobContent { set; get; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { set; get; }

        /// <summary>
        /// 方量(平方数量)
        /// </summary>
        public float Squarequantity { set; get; }

        /// <summary>
        /// 单价
        /// </summary>
        public  decimal Price { set; get; }

        /// <summary>
        /// 责任人
        /// </summary>
        public  int PersonId { set; get; }
        /// <summary>
        /// 总价
        /// </summary>
        public decimal Totalprice { set; get; }

        /// <summary>
        /// 备注
        /// </summary>
        public  string  Remarks{ set; get;}


        /// <summary>
        ///1、收方工资单    2、实发工资单
        /// </summary>
        public PayrollFormTypeEnum PayrollFormType { set; get; }

        /// <summary>
        /// 收方工资单状态 0 待审核  1 审批通过
        /// </summary>
        public OrderStateEnum PayrollType { get; set; } = OrderStateEnum.WaitApprove;
        
        /// <summary>
        ///  开帐批号
        /// </summary>
        public string SettlementNumber { get; set; }

        /// <summary>
        /// 是否开帐 0 未开帐  1 已开帐
        /// </summary>
        public bool Settlement { get; set; }

    }
}
